package com.lagou.bean;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ComsumerComponet{

    @Reference(timeout = 5000)
    private HelloService helloService;

    public String  sayHelloOne(String name, int timeToWait){
        return  helloService.sayHelloOne(name,timeToWait);
    }

    public String  sayHelloTwo(String name, int timeToWait){
        return  helloService.sayHelloTwo(name,timeToWait);
    }

}
